From bbea1cc841344c75ce8378537834a51d0baf5fc1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 17 Jun 2019 12:41:01 -0400 Subject: [PATCH] wayland: Explicitly require RGBA8888 Its the format we expect to have. If we want to support 10-bit visuals at some point, that should be an explicit decision. --- gdk/wayland/gdkglcontext-wayland.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c index edeca4916c..40df428a38 100644 --- a/gdk/wayland/gdkglcontext-wayland.c +++ b/gdk/wayland/gdkglcontext-wayland.c @@ -391,13 +391,13 @@ find_eglconfig_for_surface (GdkSurface *surface, attrs[i++] = EGL_RGB_BUFFER; attrs[i++] = EGL_RED_SIZE; - attrs[i++] = 1; + attrs[i++] = 8; attrs[i++] = EGL_GREEN_SIZE; - attrs[i++] = 1; + attrs[i++] = 8; attrs[i++] = EGL_BLUE_SIZE; - attrs[i++] = 1; + attrs[i++] = 8; attrs[i++] = EGL_ALPHA_SIZE; - attrs[i++] = 1; + attrs[i++] = 8; attrs[i++] = EGL_NONE; g_assert (i < MAX_EGL_ATTRS); -- 2.30.2